import allure

from api.info import InfoAPI


class TestGetBankQuery:

    # 前置处理
    def setup_method(self):
        self.info_api = InfoAPI()

    @allure.title("银行卡信息接口")
    def test01_success(self):
        data = {
            "bankCardNo": "6217000100000000000",
            "serviceCode": "agent"
        }
        res = self.info_api.getBankQuery(data=data)
        print(res.json())
        assert 200 == res.status_code
